<template>
	<view>
		<view class="room-list-item" v-for="(item,index) in buildList" :key="index">
			<view class="label">
				<view class="info-wrap">楼栋号：{{item['楼栋名称']}}</view>
				<!-- <view class="info-wrap">楼栋编号：{{item['楼栋编号']}}</view> -->
			</view>
			<!-- <view class="arrow"></view> -->
			<view class="handle">
				<view class="edit" @click.stop="onEdit(item)">编辑</view>
				<view class="delete" @click.stop="onDelete(item.楼栋id, index)">删除</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: ['buildList'],
		data() {
			return {

			};
		},
		methods: {
			onDelete(id,index) {
				this.$emit('delete', {id,index})
			},
			onEdit(item) {
				this.$emit('edit', item)
			}
		}
	}
</script>

<style lang="scss" scoped>
	
</style>
